import request from './api';


//查询信息维护
function detailApi(params) {
  return request('/admin/project/detail', params, 'GET')
}


//风险列表
function projectRiskListApi(params) {
	return request('/project_risk/risks', params, 'GET')
}



function projectListApi(params) {
	return request('/project/list', params, 'GET')
}

function projectInfoApi__java(params) {
	return request('/project/getInfo/' + params.id, {}, 'GET')
}

function projectSelectListApi(params) {
	return request('/project/projectName', params, 'GET')
}


function projectTdListApi(params) {
	return request('/project/td', params, 'GET')
}


function powerListtApi(params) {
	return request('/project_power/index', params, 'GET')
}

function projectCityApi(params) {
	return request('/project/city', params, 'GET')
}

function projectInfoApi(params) {
	return request('/project/info', params, 'GET')
}

function planApi(params) {
	return request('/project_plan_list/plan', params, 'GET')
}

function paperApi(params) {
	return request('/project_plan_list/paper', params, 'GET')
}

function powerApi(params) {
	return request('/project_plan_list/power', params, 'GET')
}

function materialApi(params) {
	return request('/project_plan_list/material', params, 'GET')
}

function buildApi(params) {
	return request('/project_plan_list/build', params, 'GET')
}

function getListDataApi(params) {
	return request('/ProjectFourConnectionOneLevel/list', params, 'POST')
}

function powerAnalysisApi(params) {
	return request('/project_power/analysis', params, 'GET')
}

function updateProjectApi(params) {
  return request('/project/update', params, 'POST', false, false, true)
}

function budgetApi(params) {
	return request('/project_budget/list', params, 'GET')
}

function budgetAnalysisApi(params) {
	return request('/project_budget/analysis', params, 'GET')
}
//风险
function Workbenchrisk(params) {
	return request('/project_risk/projectRiskList', params, 'POST')
}

function bannerListApi(params) {
	return request('/project/bannerList', params, 'GET')
}

function getStartTime(params) {
	return request('/project/getProjectStart', params, 'GET')
}

function changeStartTime(params) {
	return request('/project/updateProjectStart', params, 'POST')
}

function getProductionTime(params) {
	return request('/project/getProjectUsed', params, 'GET')
}

function changeProductionTime(params) {
	return request('/project/updateProjectUsed', params, 'POST')
}

function projectTeamTeamList(params) {
	return request('/ProjectTeam/teamList', params, 'GET')
}

function projectTeamCompanyEvaluate(params) {
	return request('/ProjectTeam/companyEvaluate', params, 'GET')
}
function projectTeamComment(params) {
	return request('/ProjectTeam/comment', params, 'POST')
}
function updateFourWay(params) {
	return request('/ProjectFourConnectionOneLevel/update', params, 'POST')
}

function getFourWay(params) {
	return request('/ProjectFourConnectionOneLevel/detail', params, 'GET')
}

function getStatisticalFourWay(params) {
	return request('/ProjectFourConnectionOneLevel/list', params, 'GET')
}

function getFourWayChildrenList(params) {
	return request('/ProjectFourConnectionOneLevel/politicalList', params, 'GET')
}

function ProjectTeamDetail(params) {
	return request('/ProjectTeam/detail', params, 'GET')
}

function getFeasiblelist(params) {
	return request('/FeasibilityStudyReply/index', params, 'GET')
}

function getFeasibleDetails(params) {
	return request('/FeasibilityStudyReply/detail', params, 'GET')
}

function getApprovedlist(params) {
	return request('/ApprovalReply/index', params, 'GET')
}

function getApprovedDetails(params) {
	return request('/ApprovalReply/detail', params, 'GET')
}
function getFileList(params) {
	return request('/PreliminaryDocuments/index', params, 'GET')
}
function getFileDetails(params) {
	return request('/PreliminaryDocuments/list', params, 'GET')
}
function ExcellencePlanExcellenceList(params) {
	return request('/ExcellencePlan/excellenceList', params, 'GET')
}
function ExcellencePlanList(params) {
	return request('/ExcellencePlan/list', params, 'GET')
}

function ExcellencePlanprojectExcellenceList(params) {
	return request('/ExcellencePlan/projectExcellenceList', params, 'GET')
}
function ExcellencePlanfileList(params) {
	return request('/ExcellencePlan/fileList', params, 'GET')
}
function ExcellencePlanCommentList(params) {
	return request('/ExcellencePlan/commentList', params, 'GET')
}
function ExcellencePlanCommentSave(params) {
	return request('/ExcellencePlan/commentSave', params, 'GET')
}
function ExcellencePlanSave(params) {
	return request('/ExcellencePlan/save', params, 'GET')
}
function ExcellencePlanBasicConditionList(params) {
	return request('/ExcellencePlan/basicConditionList', params, 'GET')
}
function contractList(params) {
	return request('/ContractPayment/index', params, 'GET')
}
function contractDetails (params) {
	return request('/ContractPayment/detail', params, 'GET')
}
function modifyContractDetails (params) {
	return request('/ContractPayment/update', params, 'POST')
}
function statistiContractList(params) {
	return request('/ContractPayment/list', params, 'GET')
}
function statistiContractChildrenList(params) {
	return request('/ContractPayment/politicalList', params, 'GET')
}
function getPayData(params) {
	return request('/ContractPayment/analysis', params, 'GET')
}
function getRiskProspectus(params) {
	return request('/Project_risk/list', params, 'GET', 'isAdmin')
}
export {
	bannerListApi,
	updateProjectApi,
	detailApi,
	projectRiskListApi,
	buildApi,
	budgetAnalysisApi,
	budgetApi,
	powerListtApi,
	powerAnalysisApi,
	planApi,
	paperApi,
	powerApi,
	materialApi,
	projectInfoApi,
	projectInfoApi__java,
	projectSelectListApi,
	projectListApi,
	projectTdListApi,
	projectCityApi,
	getListDataApi,
	Workbenchrisk,
	getStartTime,
	changeStartTime,
	getProductionTime,
	changeProductionTime,
	projectTeamTeamList,
	projectTeamCompanyEvaluate,
	projectTeamComment,
	updateFourWay,
	getFourWay,
	getStatisticalFourWay,
	getFourWayChildrenList,
	ProjectTeamDetail,
	getFeasiblelist,
	getFeasibleDetails,
	getApprovedlist,
	getApprovedDetails,
	getFileList,
	getFileDetails,
	ExcellencePlanExcellenceList,
	ExcellencePlanList,
	ExcellencePlanprojectExcellenceList,
	ExcellencePlanfileList,
	ExcellencePlanCommentList,
	ExcellencePlanCommentSave,
	ExcellencePlanSave,
	ExcellencePlanBasicConditionList,
	contractList,
	statistiContractList,
	modifyContractDetails,
	contractDetails,
	statistiContractChildrenList,
	getPayData,
	getRiskProspectus
}
